import { createAPI } from '@/utils/request'

// 获取学科
export const simple = data => createAPI('/subjects/simple', 'get', data)
// 获取公司
export const entrepreneurlist = data => createAPI('/companys?', 'get', data)

// 获取标签
export const tagssimple = data => createAPI('/tags/simple', 'get', data)
// 获取目录
export const catalogueSimple = data => createAPI('/directorys/simple', 'get', data)
// 添加
export const add = data => createAPI('/questions', 'post', data)
// 修改
export const update = data => createAPI(`/questions/${data.id}`, 'put', data)
// 详情
export const detail = data => createAPI(`/questions/${data}`, 'get', data)
